<?php
class Admin_IndexController extends Zend_Controller_Action
{
	public function init()
    {
  
	}
	public function indexAction()
    {
		$storage = new Zend_Auth_Storage_Session();
        $data = $storage->read();
        if(!$data){
            $this->_redirect('admin/auth/login');
        }
        
	    $this->_helper->layout->setLayout('admin_layout');
   		//$login = new AML_Model_Login();
		Zend_Loader::loadFile("../application/admin/forms/LoginForm.php");
		$form = new AML_Form_LoginForm();
        $this->view->form = $form;
		
		//$data = $login->fetchAll();
		//foreach ($data as $rows){
			//echo $rows['admin_username'].'  ';
		//}
	 }
}
